package tankgame;

/**
 * @author: lizhiwen
 * @version: 1.0
 */
public class Bomb {
    int x;
    int y;
    int life = 9;
    boolean isLife = true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    //生命值减一
    public void lifeDown(){
        if (life > 0){
            life--;
        }else {
            isLife = false;
        }
    }
}
